<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@include file="/common/common.jspf"%>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/system/admin/edit.js"></script>

<style type="text/css">
.col-sm-3 {
	width: 15%;
	float: left;
	text-align: right;
}

.col-sm-9 {
	width: 85%;
	float: left;
	text-align: left;
}

label[class^="btn btn-default"] {
	margin-top: -4px;
}
</style>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
    <script type="text/javascript" charset="utf-8" src="${pageContext.request.contextPath}/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="${pageContext.request.contextPath}/ueditor/ueditor.all.min.js"> </script>
    <script type="text/javascript" charset="utf-8" src="${pageContext.request.contextPath}/ueditor/lang/zh-cn/zh-cn.js"></script>

</head>
<body>
	<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
	
	<form id="form" name="form" class="form-horizontal" method="post"
		action="${ctx}/admin/editEntity.shtml">
		<input type="hidden" class="form-control "
			value="${article.id}" name="baseFormMap.id" id="id">
		<section class="panel panel-default">
		<div class="panel-body">
			<div class="form-group">
				<label class="col-sm-3 control-label">标题</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkimagename"
						placeholder="请输入文章标题" value="${article.title}"
						name="baseFormMap.title" id="title">
				</div>
			</div>
			<div class="form-group">
		</div>
		<div class="panel-body">
			<div class="form-group">
				<label class="col-sm-3 control-label">标签</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkimagename"
						placeholder="请输入文章标签" value="${article.tag}"
						name="baseFormMap.tag" id="tag">
				</div>
			</div>
			<div class="form-group">
		</div>
		
		<div class="form-group">
				<label class="col-sm-3 control-label">内容</label>
				<div class="col-sm-0">
					<textarea  rows="16" cols="70"
						name="baseFormMap.content" id="title">${article.content}</textarea>
				</div>
		</div>
		<footer class="panel-footer text-right bg-light lter">
<!-- 		<a href="javascript:void(0)" class="btn btn-default" id="ssave">查询</a> -->
		<button type="submit" id ="ssave" class="btn btn-success btn-s-xs">保存</button>
		</footer>
	 </section>
	</form>
</body>
</html>